package com.hsource.doctorcenter.service.problem;

import java.security.NoSuchAlgorithmException;
import java.text.ParseException;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author yangYang
 * @version 1.0
 * @date 2020/9/28 11:48
 * @describe
 */
public interface ProblemService {

    /**
     * 缓存处理redis问题详情
     * @param userId
     * @param problemId
     * @return
     */
    List<LinkedHashMap<String,String>> getProblemDetailRedis(String userId,String problemId) throws ParseException, NoSuchAlgorithmException;

    /**
     * 获取问题历史
     * @param userId 用户id
     * @param startNum 开始条数
     * @param count 总数
     * @param type 类型
     * @return
     * @throws ParseException
     * @throws NoSuchAlgorithmException
     */
    Map<String,Object> getHistoricalQuestions(String userId, Integer startNum, Integer count, String type) throws ParseException, NoSuchAlgorithmException;

    /**
     * 获取问题详情
     * @param userId 用户id
     * @param problemId 问题id
     * @return
     * @throws ParseException
     * @throws NoSuchAlgorithmException
     */
    List<LinkedHashMap<String,String>> getProblemDetail(String userId, String problemId) throws ParseException, NoSuchAlgorithmException;
}
